package com.musicserver.service;

import com.musicserver.common.R;
import com.musicserver.model.domain.Consumer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.musicserver.model.request.ConsumerRequest;
import jakarta.servlet.http.HttpSession;
import org.springframework.web.multipart.MultipartFile;

/**
* @author tch001
* @description 针对表【consumer】的数据库操作Service
* @createDate 2025-09-11 08:34:36
*/
public interface ConsumerService extends IService<Consumer> {
    /**
     * 获取所有用户
     */
    R allUser();

    R allUser(int curPage, int pageSize);
    /**
     * 删除用户
     */
    R deleteUser(int id);

    R deleteUsers(String[] ids);

    R userOfId(int id);

    R loginStatus(ConsumerRequest loginRequest, HttpSession session);

    R addUser(ConsumerRequest registryRequest);

    R updateUserMsg(ConsumerRequest updateRequest);

    R updateUserAvator(MultipartFile avatorFile, int id);

    R updatePassword(ConsumerRequest updatePasswordRequest);

}
